package org.jeecg.modules.system.mapper;

import com.baomidou.mybatisplus.annotation.InterceptorIgnore;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.system.entity.SysUserRole;

import java.util.List;

public interface SysUserRoleMapper extends BaseMapper<SysUserRole> {

    /**
     * 新增用户角色关系
     * @param userRole
     */
    @InterceptorIgnore(illegalSql = "true", tenantLine = "true")
    void insertUserRole(@Param("userRole") SysUserRole userRole);

    List<String> getUserRoleType(@Param("userId") String userId);

    void batchInsert(@Param("list") List<SysUserRole> list);
}
